﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PSDLib.Models
{
    public class dl_case_log
    {
        #region Properties

        /// <summary>
        /// 主键id
        /// </summary>
        [DisplayName("主键id")]
        public string id { get; set; }

        /// <summary>
        /// 对象id
        /// </summary>
        [DisplayName("对象id")]
        public string object_id { get; set; }

        /// <summary>
        /// 对象名称
        /// </summary>
        [DisplayName("对象名称")]
        public string object_name { get; set; }

        /// <summary>
        /// 对象房间
        /// </summary>
        [DisplayName("对象房间")]
        public string object_room { get; set; }

        /// <summary>
        /// 日志类型
        /// </summary>
        [DisplayName("日志类型")]
        public string log_type { get; set; }

        /// <summary>
        /// 日志主键id
        /// </summary>
        [DisplayName("日志主键id")]
        public string log_id { get; set; }

        /// <summary>
        /// 日志时间
        /// </summary>
        [DisplayName("日志时间")]
        public DateTime log_time { get; set; }

        /// <summary>
        /// 日志最后更新时间
        /// </summary>
        [DisplayName("日志最后更新时间")]
        public DateTime? log_update_time { get; set; }

        /// <summary>
        /// 下载状态（-1：等待下载，0：正在下载，1：下载完成，2：下载失败）
        /// </summary>
        [DisplayName("下载状态（-1：等待下载，0：正在下载，1：下载完成，2：下载失败）")]
        public int state { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        [DisplayName("文件名称")]
        public string file_name { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        [DisplayName("文件大小")]
        public long? file_size { get; set; }

        /// <summary>
        /// 文件下载路径
        /// </summary>
        [DisplayName("文件下载路径")]
        public string file_path { get; set; }

        /// <summary>
        /// 下载开始时间
        /// </summary>
        [DisplayName("下载开始时间")]
        public DateTime? dl_start_time { get; set; }

        /// <summary>
        /// 下载结束时间
        /// </summary>
        [DisplayName("下载结束时间")]
        public DateTime? dl_end_time { get; set; }

        /// <summary>
        /// 下载速度
        /// </summary>
        [DisplayName("下载速度")]
        public long? dl_speed { get; set; }

        /// <summary>
        /// 错误日志
        /// </summary>
        [DisplayName("错误日志")]
        public string error_log { get; set; }

        #endregion
    }

    public enum DownloadLogType : int
    {
        All = -1,
        /// <summary>
        /// 监控日志
        /// </summary>
        MonitoringLog = 0,
        /// <summary>
        /// 健康日志
        /// </summary>
        HealthLog = 1,       
        /// <summary>
        /// 案管每日反馈日志
        /// </summary>
        CMFeedbackLog = 2,
        /// <summary>
        /// 审查调查工作日志
        /// </summary>
        InvestigateLog = 3,
        /// <summary>
        /// 安全员工作日志
        /// </summary>
        SecurityLog = 4,
        /// <summary>
        /// 专班监督日志
        /// </summary>
        SuperviceLog = 5,
        /// <summary>
        /// 餐饮日志
        /// </summary>
        //RepastLog = 6,
    }
}
